/** builder-vars begin **/
.wd-vars {
  display: flex;
  flex: auto;
  align-items: stretch;
  height: 100%;
  background: #FAFAFA;
  padding: 10px;

  &-header {
    //border: 1px solid #EEE;
    background: #FFF;
    border-bottom: 2px solid #409EFF;
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;

    .xbtn {
      color: #409EFF;
      font-size: 13px;
      cursor: pointer;
      margin-left: 10px;
    }

  }

  &-list {
    display: flex;
    flex-flow: column;
    font-size: 12px;
    width: 360px;
    /*padding: 20px;*/
    overflow-y: auto;
    overflow: hidden;
  }
  &-item {
    cursor: move;
    padding: 10px 18px 10px 10px;
    border: 1px solid #F1F1F1;
    margin-bottom: 6px;
    margin-right: 10px;
    border-radius: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    transition: all .2s;
    position: relative;
    background: #FFF;

    &-icon {
      width: 30px;
      height: 30px;
      padding: 2px;
      //font-size: 12px !important;
      margin-right: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 20%;
      color: #67c23a;
      background: #f0f9eb;
      border-color: #c2e7b0;
      margin-top: -2px;
      margin-bottom: -2px;

      &.static {
        color: #FA8080;
        background: #F3E6E6;
      }
      &.api {
        color: #409EFF;
        background: #C6E2FF;
      }
      &.mb {
        color: #FFC076;
        background: #FAEDD8;
      }
      &.option {
        color: #E7934C;
        background: #EBDED3;
      }
      &.query {

      }
      &.var {
        color: #1989fa;
        background: #D9E9FF;
      }
    }
    &-text {
      flex: 1;
      overflow: hidden;
    }
    &-prop {
      font-size: 14px;
      line-height: 1.2;
      flex: 1;
      font-weight: bold;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;

      >.el-button {
        margin-left: 10px;
      }
    }
    &-label {
      color: #999;
      margin-top: 2px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    &-remark {
      position: relative;
      color: var(--j-text-color-regular);
      //background-color: var(--el-fill-color-lighter);
      border: 1px solid var(--el-border-color);
      border-radius: 3px;
      width: 18px;
      height: 18px;
      text-align: center;
      line-height: 16px;
      margin: 0 2px;
    }
    &-refresh {
      width: 20px;
      height: 20px;
      padding: 2px;
      text-align: center;
      cursor: pointer;
    }
    &-remove {
      width: 20px;
      height: 20px;
      padding: 2px;
      display: none;
      align-items: center;
      justify-content: center;
      position: absolute;
      right: 1px;
      color: #EEE;
      /*border: 1px solid #eee;*/
      border-radius: 50%;

      &:hover {
        color: #FFF;
        /*background: #FFF;*/
        /*border-color: #FFF;*/
      }
    }

    &:hover, &.active {
      background: #409EFF;
      border-color: #409EFF;
      /*box-shadow: 0 0 10px #eee;*/
      color: #FFF;

      .wd-vars-item-label,
      .wd-vars-item-remark {
        color: #EEE;
      }
    }

    &:hover {
      .wd-vars-item-remove {
        display: flex;
        cursor: pointer;
      }
    }

    &.active {
      &:after {
        content: ' ';
        width: 0;
        height: 0;
        border-width: 8px;
        border-color: transparent transparent transparent #409EFF;
        border-style: dashed dashed dashed solid;
        position: absolute;
        right: -16px;
      }
    }
  }
  &-info {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-flow: column;

    border: 1px solid #EEE;
    background: #FAFAFA;

    &-header {
      height: 38px;
      border-bottom: 1px solid #EEE;

      display: flex;
      align-items: center;
      padding: 0 10px;
      font-size: 16px;
      /*font-weight: lighter;*/
      color: #666;

      .xbtn {
        color: #409EFF;
        font-size: 13px;
        cursor: pointer;
        margin-left: 10px;
      }
    }
    &-cnt {
      flex: 1;
      height: 100%;
      overflow-y: auto;

      background: #FEFEFE;
      padding: 15px 10px;

      .wd-vars-form-label {
        font-size: 13px;
        line-height: 1;
        color: #666;
        margin-bottom: -2px;
        font-weight: bold;
      }
      .wd-vars-initType {
        display: flex;
        align-items: center;

        .wd-vars-item-icon {
          margin-right: 5px;
          width: 20px;
          height: 20px;
        }
      }

      .wd-vars-api-info {
        text-align: center;
        margin-bottom: -1px;
        background: #f5fcfe;
        padding: 5px;
        border: 1px solid #f0f0f0;
      }
    }
  }

  &.wd-vars-dialog {
    padding: 0px;
    margin-bottom: 10px;
    flex: none;
    height: auto;

    .wd-vars-header {
      margin-right: 0px;
      margin-bottom: 0px;
      height: 34px;
      font-size: 13px;
    }
    .wd-vars-item {
      margin-right: 0px;
      margin-bottom: 0px;
      border-radius: 0px;
      border-top: none;
      padding: 8px 20px 8px 8px;
    }
  }
}
/** builder-vars end **/
